package com.ruoyi.system.service.impl;

import com.ruoyi.system.mapper.GoodsMapper;
import com.ruoyi.system.mapper.InventoryMapper;
import com.ruoyi.system.service.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InventoryServiceImpl implements InventoryService {

    @Autowired
    private InventoryMapper inventoryMapper;
    @Override
    public Integer selectMinInventory(Integer goodId) {
        return inventoryMapper.selectMinInventory(goodId);
    }

    @Override
    public Integer updateInventory(Long id) {
        return inventoryMapper.updateInventory(id);
    }

}
